//
//  UILabel+WDExtention.h
//  MyDemos
//
//  Created by iMac on 2018/3/14.
//  Copyright © 2018年 iMac. All rights reserved.
//

#import <UIKit/UIKit.h>



#define Lable() [[UILabel alloc] init]
@interface UILabel (WDExtention)

@property (nonatomic, copy) void(^tapCallback)(UILabel *);

/// set text
- (UILabel *(^)(NSString *))sText;

/// set color
- (UILabel *(^)(UIColor *))sColor;

/// set text color
- (UILabel *(^)(NSString *, UIColor *))sTextColor;

/// set background color
- (UILabel *(^)(UIColor *))sBGColor;

/// set system font size
- (UILabel *(^)(CGFloat))sSysFont;

/// set font size & fontName
- (UILabel *(^)(CGFloat, NSString *))sFontName;

/// set attribute text
- (UILabel *(^)(NSAttributedString *))sAttrText;

/// set frame
- (UILabel *(^)(CGRect))sFrame;

/// set numberOfline
- (UILabel *(^)(NSInteger))sLineNum;

/// set textAlignment
- (UILabel *(^)(NSTextAlignment))sAlignment;

/// tap callback
- (void)tap:(void(^)(UILabel *))callback;

@end
